package cn.tedu.spring.di;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserDao {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu.spring.di");
        UserService service = context.getBean(UserService.class);
//        UserDao userDao = (UserDao) service;
        System.out.println(service);

    }
}
